#include"ShareMemory.hpp"
#include"Fifo.hpp"
#include"Time.hpp"
#include<string.h>
int main()
{
    shm.Getshm();
    shm.AttachShm();
    gpipe.OpenPipeForWrite();
    struct data *image = (struct data *)shm.GetAddr();
    char ch = 'A';
    while(ch <= 'Z')
    {
        strcpy(image->status,"最新");
        strcpy(image->lasttime,GetCurrTime().c_str());
        strcpy(image->image,"XXXXXXXXXXXXXXXXXXXXXXXXXX");
        gpipe.Signal();
        sleep(3);
    }
    // sleep(10);
    // std::cout<<"client attach done"<<std::endl;
    shm.DetachShm();
    // std::cout<<"client detach done"<<std::endl;
    return 0;
}